package thread_01;

public class MyThread extends Thread {
    public MyThread() {
    }

    public MyThread(Runnable target) {
        super(target);
    }

    public MyThread(String name) {
        super(name);
    }

    public MyThread(Runnable target, String name) {
        super(target, name);
    }

    @Override
    public void run() {
        for(int i=0; i<100; i++) {
            System.out.println(getName()+i);
            try {
                sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
